package com.sright.bcard.content.dal.mapper;

import com.sright.bcard.common.service.share.base.dao.BaseMapper;
import com.sright.bcard.content.dal.entity.FavoriteCardDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FavoriteCardDOMapper extends BaseMapper<FavoriteCardDO> {
    Long selectCountByMemberId(Long memberId);

    FavoriteCardDO selectByObject(FavoriteCardDO favoriteCardDO);

    List<FavoriteCardDO> selectPageList(@Param("offset") Integer offset, @Param("keywords") String keywords, @Param("memberId") Long memberId);

    Integer selectCount(@Param("keywords") String keywords, @Param("memberId") Long memberId);
}